﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml;
using Axis.Dao.Research;
using Axis.Web.Administrator.Global;
using Axis.BusinessObject.Research;
using System.Web.SessionState;
using Axis.BusinessObject.Core;
namespace Axis.Web.Administrator.Views.Project.Class
{
    public class CProjectUI
    {
        public CApplicationMessage ActionChangeStatus(int ProjectID, int Status)
        {
            CResearchDao core = new CResearchDao();
            string action="PUBLISH";
            if(Status==2)
                 action="TEST";
            string InputValue = string.Format("<InputValue UserID=\"{0}\" Session=\"{1}\" ID=\"{2}\" Action=\"{3}\"  />", CSecurity.USER_ID.ToString(), CSecurity.SECRECT_TOKEN.ToString(), ProjectID.ToString(), action);
            return core.ActionProject(InputValue);
        }
    }
}